package com.wanho.java157.CustomerManagement.mapper;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration({"classpath:spring/applicationContext-dataSource.xml","classpath:spring/applicationContext-daos.xml"})
public class CustomerMapperTest {

    @Autowired
    private CustomerMapper customerMapper;

    @Test
    public void selectAll() {
        customerMapper.selectAll().forEach(System.out::println);
    }
}
